<?php
declare (strict_types = 1);

namespace app\home\controller;
use app\common\order\model\PrebookOrder;
use think\Request;

class Prebook
{
    protected $request = null;

    public function __construct(Request $request)
    {
        $this->request = $request;
    }

    public function create()
    {
        $post = $this->request->post();
        $model = new PrebookOrder();
        $model->create($post);

        return success($model->id, '预约成功');
    }
}